{% load i18n %}

<div class="widget{% if widget_index and not widget_index|divisibleby:"2" %} altwidget{% endif %} {{ widget.template.slug }}" id="{{ widget.slug }}-widget">
    {% if widget.show_title %}
    <div class="title">
        <h4>{% block widget-title %}{% if widget.title %}{% trans widget.title %}{% else %}{% trans widget.template.title %}{% endif %}{% endblock %}</h4>
    </div>
    {% endif %}
    {% if widget.editable %}
    <div class="actions">
        <ul>
            <li class="edit"><a title="{% trans 'Edit' %}"  href="{{ widget.get_edit_url }}">{% trans "Edit" %}</a></li>
            <li class="delete"><a title="{% trans 'Delete' %}"  href="{{ widget.get_delete_url }}">{% trans "Delete" %}</a></li>
        </ul>
    </div>
    {% endif %}
    {% block widget-body %}
    <div class="body">
        {% block widget-content %}{% trans text %}{% endblock %}
    </div>
    {% endblock %}
</div>
